<?php 
$this->breadcrumbs = array(
	'All tables'
);
?>
<?php $form = $this->beginWidget('CActiveForm', array(
	'action' => $this->createUrl($this->action->id),
	'method' => 'get',
))?>
<table class='detail mgb10'>
	<tr class='title'><td colspan=999><i>Search by conditions</i></td></tr>
	<tr>
		<th width=50><?php echo $form->label($model, 'table_name')?>：</th>
		<td width=180><?php echo $form->textField($model, 'table_name', array(
			'class' => 'bh-input',
		))?></td>
		<th width=20><?php echo $form->label($model, 'package')?>：</th>
		<td width=180><?php echo $form->textField($model, 'package', array(
			'class' => 'bh-input',
		))?></td>
		<td>
		<?php echo CHtml::submitButton('Submit', array(
			'class' => 'pn',
			'style' => 'width:100px',
		))?></td>
	</tr>
</table>
<?php $this->endWidget()?>
<table class='list' width=100%>
	<tr class='thead-tr'>
		<td width=50>&nbsp;</td>
		<td><?php echo CHtml::activeLabel($model, 'table_name')?></td>
		<td width=200><?php echo CHtml::activeLabel($model, 'package')?></td>
		<td width=200><?php echo CHtml::activeLabel($model, 'comment')?></td>
		<td width=80><?php echo CHtml::activeLabel($model, 'update_count')?></td>
		<td width=200><?php echo CHtml::activeLabel($model, 'last_update')?></td>
		<td width=100>操作</td>
	</tr>
	<?php foreach($data->data as $index=>$desc):?>
	<tr>
		<td align=center><?php echo $index+1?></td>
		<td style='font-weight:bold'><a href='<?php echo $this->createUrl('diffDetail', array('table_name' => $desc->table_name))?>'><?php echo CHtml::value($desc, 'table_name')?></a></td>
		<td><?php echo CHtml::value($desc, 'package')?></td>
		<td><?php echo CHtml::value($desc, 'comment')?></td>
		<td><?php echo CHtml::value($desc, 'update_count')?></td>
		<td><?php echo CHtml::value($desc, 'last_update')?></td>
		<td>
			<a class='pn' style='padding:0 5px' href='<?php echo $this->createUrl('diffDetail', array('table_name' => $desc->table_name))?>'>差异</a>
			<a class='pn' style='padding:0 5px' href='<?php echo $this->createUrl('info', array('table_name' => $desc->table_name))?>'>信息</a>
		</td>
	</tr>
<?php endforeach?>
</table>
<div class='operator fl'>
	<input onClick="location.href='<?php echo $this->createUrl('htmlExport/export')?>'" style='width:80px' type='button' class='pn' value='导出CHM'>
</div>
<div class='fr'>
	<div class='pager'>
		<?php $this->widget('CLinkPager', array(
			'pages' => $data->pagination,
			'cssFile' => false,
		))?>
	</div>
</div>
<div class='clearboth'></div>
